package com.itheima.file;

import java.io.File;

public class Demo05 {

    public static void main(String[] args) {

        File file = new File("D:\\");

        File[] files = file.listFiles();
        for (File file1 : files) {
            System.out.println(file1);
        }
    }
}
